package com.example.demo.mapper;

import com.example.demo.entity.RolePermission;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;

@Mapper
public interface RolePermissionMapper {
    int insert(RolePermission rolePermission);
    int deleteByRoleId(Long roleId);
    List<RolePermission> findByRoleId(Long roleId);
    List<RolePermission> findByPermissionId(Long permissionId);
}